<template>
    <view class="content">
		<page-head :title="i18n.main.friend"></page-head>
		<image src="../../static/tabbar/return.png" mode="" class="page-return" @tap="back"></image>
        <view class="terms">
         	<div v-html="terms"></div>
         </view>
    </view>
</template>

<script>
    import service from '../../service.js';
	import pageHead from '../../components/page-head.vue';

    export default {
		computed: {
			i18n () {
				return this.$t('index')
			}
		},
        components: {
			pageHead
        },
        data() {
            return {
				terms:'',
            }
        },
		onShow: function() {
			uni.setNavigationBarTitle({
				title: this.i18n.main.friend
			});
			//獲取用戶數據
			service.auth(this, service.api.center.friend, {
				
			}, function(self, res) {
				var res = res.data;
				self.terms = res.content;
			});
		},
		methods:{
			back(){
				uni.switchTab({
					url: '/pages/main/user'
				})
			}
		}
    }
</script>

<style lang="scss">
	.content{
		padding: 0;
		background: #F2F2F2;
	}
	.terms{
		padding: 30upx;
	}
</style>